<template>
  <view>
    <uni-popup ref="popupcancel" type="center">
      <view class="cancel-order">
        <view class="inform-title">温馨提醒</view>
        <view class="order-conter">
          <view>此课程以下订单，信息如下:</view>
          <view>下单时间：2021-11-04 12:25:41</view>
          <view>订单金额：<text style="color:  #FF800C;">￥</text><text style="color:  #FF800C;font-weight: bold;">99.00</text></view>
          <view style="color: #262626">请确认是否继续支付？</view>
        </view>
       <view class="footer-btn">
        <view class="btn-purple" @click="concalBtn" >取消订单</view>
        <view  class="btn-primary" @click="affirmBtn" >直接支付</view>
       </view>
      </view>
    </uni-popup>
  </view>
</template>

<script>
  export default {
  	data() {
  		return {}
    },
    methods:{
      // 返回事件取消
      concalBtn() {
        this.$emit("concalBtn")
      },
      // 返回确认事件
      affirmBtn() {
        this.$emit("affirmBtn")
      },
      getPopupOpen() {
        this.$refs.popupcancel.open()
      },
      getPopupConcal() {
        this.$refs.popupcancel.close()
      }
    }
  }
</script>

<style lang="scss" scoped>
  .cancel-order{
    width: 670rpx;
    height: 500rpx;
    background: #ffffff;
    border-radius: 40rpx;
    padding:40rpx 40rpx 20rpx 40rpx;
    text-align: center;
    .inform-title{
      font-size: 38rpx;
      font-weight: bold;
    }
    .order-conter{
      padding: 20rpx 40rpx 40rpx 40rpx;
      line-height: 50rpx;
      color: #686867;
    }
    .footer-btn{
      display: flex;
      align-items: center;
      justify-content: space-around;
      .btn-primary{
         width: 260rpx;
         height: 88rpx;
         border-radius: 44rpx;
         line-height: 88rpx;
         background: #FF800C;
         color: #FFFFFF;
      }
      .btn-purple{
        width: 260rpx;
        height: 88rpx;
        border-radius: 44rpx;
        line-height: 88rpx;
        background: #EFEEF5;
        color: #333333;
      }
    }
  }
</style>
